export default addToken = (url, paramIndex) => {
    let token = sessionStorage.getItem("userInfo");
    if (paramIndex === 0) {
        return url += `${url}?channel=200&usertoken=${JSON.parse(sessionStorage.getItem('userInfo')).token}`;
    } else {
        return url += `${url}&channel=200&usertoken=${JSON.parse(sessionStorage.getItem('userInfo')).token}`;

    }
}